package com.hmxx.myblogproject.mapper;

import com.hmxx.myblogproject.entity.MyBlogTitles;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

/**
 * @description:
 * @Author: {27106}
 * @Date: {2021/11/18 10:21}
 */
public interface MyBlogTitlesMapper {
    List<MyBlogTitles> getTitlesList();

    int insertTitles(MyBlogTitles myBlogTitles);

    int updateTitleImg(@Param("id")String id,@Param("blogTitleImg")String url);

    int updateTitleBlogId(@Param("id")String id,@Param("blogId")String bid);

    MyBlogTitles queryTitleInfo(@Param("id") String id);


    List<MyBlogTitles> queryTitleByUserName(String username);

    MyBlogTitles queryTitleByBlogId(String id);

    int updateTitle(MyBlogTitles myBlogTitles);

    int delTitleById(String tid);

    List<MyBlogTitles> queryTitles(String select, String input);
}
